package com.flyfish.ddns.timer;

import java.io.IOException;

import com.flyfish.ddns.send.UpdateDomainRecord;
import com.flyfish.ddns.utils.WriteLog;

/**
 * 定时器运行数据
 * @author flyfish
 *
 */
public class SendTimer implements Runnable {

	public void run() {
		try {
			WriteLog.writeLogInfo("定时器开始运行，检查是否需要进行DDNS。");
			UpdateDomainRecord demo = new UpdateDomainRecord();
			demo.analysisDns();
			WriteLog.writeLogInfo("定时器开始结束，DDNS检查结束。");
		} catch (Exception e) {
			try {
				WriteLog.writeLogInfo(e.getMessage());
			} catch (IOException e1) {
				e1.printStackTrace();
			}
		}
	}

}
